package com.aaa.day1104.demo02;

import java.util.function.BiPredicate;
import java.util.function.Predicate;

/**
 * @author ${崔灿}
 * @date 2022/11/04 17:14
 **/

public class Test04 {
    public static void main(String[] args) {
        //比较两个字符串是否相同，---断言函数式接口。
        //BiPredicate<String,String> biPredicate = (t1,t2)->t1.equals(t2);
        BiPredicate<String,String> biPredicate =String::equals;
        boolean result = biPredicate.test("hello","world");
        System.out.println(result);
    }
}
